package com.wutong.authority_server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wutong.authority_server.entity.Role;

import java.util.List;
import java.util.Map;

public interface RoleService extends IService<Role> {
    //根据用户获取角色数据
    Map<String, Object> findRoleByUserId(Integer userId);

    //根据用户分配角色
    void saveUserRoleRealtionShip(Integer userId, Integer[] roleId);

    List<Role> selectRoleByUserId(Integer id);
}
